package demo1;

import java.util.HashSet;

public class Main1 {
    public static void main(String[] args) {
        Student stu1=new Student(1,"张三");
        Student stu2=new Student(2,"李四");
        Student stu3=new Student(2,"李四");

        HashSet hashSet=new HashSet();
        hashSet.add(stu1);
        hashSet.add(stu2);
        hashSet.add(stu3);

        System.out.println(hashSet);

    }
}
